package com.ruoyi.system.entity;

import io.mybatis.provider.Entity.Column;
import io.mybatis.provider.Entity.Table;
import lombok.Data;

/**
 * sys_role - 角色信息表
 *
 * @author mkj
 */
@Data
@Table(value = "sys_role", remark = "角色信息表", autoResultMap = true)
public class SysRoleDO extends BaseDO {
    @Column(value = "role_id", id = true, remark = "角色ID", updatable = false, insertable = false)
    private Long roleId;

    @Column(value = "role_name", remark = "角色名称")
    private String roleName;

    @Column(value = "role_key", remark = "角色权限字符串")
    private String roleKey;

    @Column(value = "role_sort", remark = "显示顺序")
    private Integer roleSort;

    @Column(value = "data_scope", remark = "数据范围（1：全部数据权限 2：自定数据权限 3：本部门数据权限 4：本部门及以下数据权限）")
    private String dataScope;

    @Column(value = "menu_check_strictly", remark = "菜单树选择项是否关联显示")
    private Boolean menuCheckStrictly;

    @Column(value = "dept_check_strictly", remark = "部门树选择项是否关联显示")
    private Boolean deptCheckStrictly;

    @Column(value = "status", remark = "角色状态（0正常 1停用）")
    private String status;

    @Column(value = "del_flag", remark = "删除标志（0代表存在 2代表删除）")
    private String delFlag;

    @Column(value = "remark", remark = "备注")
    private String remark;

}
